const tel=$("#tel");
const oldmoney=$("#oldmoney");
const remoney=$("#remoney");
$("#btn01").click(function (){
// 发送Ajax请求
$.ajax({
    url: "/users/Recharge",
    type: "post",
    data: {
        tel: tel.val(),
        oldmoney:oldmoney.val(),
        remoney: remoney.val(),
    },
    success: function (Result) {
        alert(Result.msg);
        if(Result.code===20031){
            window.location.href="/users/userrecharge";
        }
    },
    error: function () {
        alert("充值失败,系统忙,请稍后重试!");
    },
})

});